<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="xsl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="no"/>

<xsl:param name="applicationPath"/>

<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	
	<xsl:template match="lastevents">
		<table cellspacing="0" cellpadding="0" width="180" style="text-align:left">
			<tr>
				<td  valign="top">
					<table>
						<xsl:apply-templates select="event"/>
					</table>
				</td>
			</tr>
			
		</table>
	</xsl:template>
		
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->	
																							
	<xsl:template match="event">
		<tr>
			<td class="eventsTitleLeft">
				<a>
					<xsl:choose>
						<xsl:when test="section/anchor[string-length(text()) != 0]">
							<xsl:attribute name="href"><xsl:value-of select="eventPage" />#<xsl:value-of select="section/anchor" /></xsl:attribute>
						</xsl:when>
						<xsl:otherwise>
							<xsl:attribute name="href"><xsl:value-of select="eventPage" /></xsl:attribute>
						</xsl:otherwise>
					</xsl:choose>
					<xsl:value-of select="eventTitle" />
				</a>
			</td>
		</tr>
		<tr>
			<td class="eventsDateLeft">
				<a>
					<xsl:choose>
						<xsl:when test="section/anchor[string-length(text()) != 0]">
							<xsl:attribute name="href"><xsl:value-of select="eventPage" />#<xsl:value-of select="section/anchor" /></xsl:attribute>
						</xsl:when>
						<xsl:otherwise>
							<xsl:attribute name="href"><xsl:value-of select="eventPage" /></xsl:attribute>
						</xsl:otherwise>
					</xsl:choose>
					<xsl:value-of select="dateEvent" />
				</a>
			</td>
		</tr>
		<tr>
			<td class="eventsText">
				<a>
					<xsl:choose>
						<xsl:when test="section/anchor[string-length(text()) != 0]">
							<xsl:attribute name="href"><xsl:value-of select="eventPage" />#<xsl:value-of select="section/anchor" /></xsl:attribute>
						</xsl:when>
						<xsl:otherwise>
							<xsl:attribute name="href"><xsl:value-of select="eventPage" /></xsl:attribute>
						</xsl:otherwise>
					</xsl:choose>
					<xsl:value-of select="eventText" />
				</a>
			</td>
		</tr>
	</xsl:template>

</xsl:stylesheet>

  